<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<FitnessMVC.Data.UserPicture>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Your Pictures</h2>

   

    <div class="yourPictures">
    <% foreach (var item in Model) { %>
        <div class="userPic" id="<%= item.PictureId %>">
            <img src="/UserPicture/File/<%= item.PictureId %>" />
        </div>
    <% } %>
    </div>
    
    <div style="clear: left;">    
    <br /><br /><br />
    <p>
        <%= Html.ActionLink("Upload a Picture", "Create") %>
    </p>
    </div>
</asp:Content>

